how to find points where f is not differentiable